import java.sql.SQLOutput;
import java.util.Random;
import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        for (int j = 1;j <= 100;j++){
            int i = 2;
            for (; i <= Math.sqrt(j);i++) {
                if (j % i == 0) {
                    break;
                }
            }
            if (i > Math.sqrt(j)) {
                System.out.println(j + "是素数");
            }

        }












//        System.out.println("请输入你的年龄");
//        Scanner scanner = new Scanner(System.in);
//        int age = scanner.nextInt();
//        if(age > 0 && age <= 18){
//            System.out.println("少年");
//        }
//        else if(age > 18 && age <= 28){
//            System.out.println("青年");
//        }
//        else if(age > 28 && age <= 55){
//            System.out.println("中年");
//        }
//        else if(age >55){
//            System.out.println("老年");
//        }else{
//            System.out.println("请重新输入");
//        }




//        Random random = new Random();
//        Scanner scanner = new Scanner(System.in);
//        int Num = random.nextInt(100);
//        int chance = 10;
//        //System.out.println("num :" + Num);
//        while(chance != 0){
//            System.out.println("请输入你猜的数字（0-100）,次数" + chance);
//            int num = scanner.nextInt();
//            if(num < Num){
//                System.out.println("猜小了");
//                chance--;
//            }else if(num > Num){
//                System.out.println("猜大了");
//                chance--;
//            }else{
//                System.out.println("猜对了");
//                break;
//            }
//        }
//        if(chance == 0){
//            System.out.println("游戏失败，你的机会已用完");
//        }else{
//            System.out.println("猜对了");
//        }
//        scanner.close();






        /*
        System.out.println("hello word");
        System.out.println(3);
        System.out.println(3.2);
        System.out.println('a');
        System.out.println(true);
        System.out.println(false);

        byte num3 = 'a';
        char num6 = 8;
        int num1 = 10;
        long num2 = 100L;
        float num4 = 3.12f;
        double num5 = 3.421;

        System.out.println("------------------------------------------------");

        //字节
        System.out.println(Byte.MAX_VALUE);
        System.out.println(Byte.MIN_VALUE);
        //字符
        System.out.println(Character.MAX_RADIX);
        System.out.println(Character.MIN_VALUE);
        //整形
        System.out.println(Integer.MAX_VALUE);
        System.out.println(Integer.MIN_VALUE);
        //短整形
        System.out.println(Short.MAX_VALUE);
        System.out.println(Short.MIN_VALUE);
        //长整形
        System.out.println(Long.MAX_VALUE);
        System.out.println(Long.MIN_VALUE);
        //单精度浮点
        System.out.println(Float.MAX_VALUE);
        System.out.println(Float.MIN_VALUE);
        //双精度浮点
        System.out.println(Float.MAX_VALUE);
        System.out.println(Float.MIN_VALUE);
        System.out.println("------------------------------------------------");


        String arr1 = "abcdef";
        System.out.println(arr1);
        String arr2 = "123456";
        System.out.println(arr2);
        System.out.println(arr1+arr2);
        System.out.println("------------------------------------------------");

        int a = 10;
        String b = "0";

        System.out.println(a + b);

        String a1 = a + "";
        String a2 = String.valueOf(a);
        int b1 = Integer.valueOf(b);
        System.out.println("------------------------------------------------");


        int i = 1;
        long l = 100L;
        l = i;
        i = (int)l;

        int rt = 2;
        long wd = 29;

        int s = (int) (rt + wd);
        long dw = rt + wd;
        System.out.println("------------------------------------------------");
        */



    }
}
